import {AfterViewInit, ChangeDetectorRef, Component} from '@angular/core';
import {GnFormConfig, GnModalContent} from 'geminis-ng';

@Component({
  selector: 'everydata-form-preview',
  templateUrl: './form-preview.component.html',
  styles: [':host{display: flex;}', '::ng-deep nz-card{ flex: 1; }', '::ng-deep textarea{width: 100%;}']
})
@GnModalContent({
  key: 'form-preview',
  width: '80vw',
  // height: '75vh',
  top: '40px'
})
export class FormPreviewComponent implements AfterViewInit {

  config!: GnFormConfig;

  constructor(private cdr: ChangeDetectorRef) {
  }

  ngAfterViewInit(): void {
    this.cdr.detectChanges();
  }

}
